package com.ugoodtech.mdcc.web.dto;


import com.ugoodtech.mdcc.core.domain.QuestionGroup;

/**
 * Copyright © 2013 All Rights Reserved, Ugood Technology, Inc.
 */
public class GroupResponse {
    private String title;
    private String type;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static GroupResponse turnGroupToResponse(QuestionGroup questionGroup) {
        if (null != questionGroup) {
            GroupResponse groupResponse = new GroupResponse();
            groupResponse.setTitle(questionGroup.getTitle());
            groupResponse.setType("title");
            return groupResponse;
        } else {
            return null;
        }
    }
}
